<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Global</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Global</h1>

    




<section>

<header>
    
        <h2></h2>
        
    
</header>

<article>
    <div class="container-overview">
    
        

        


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


        
    
    </div>

    

    

    

    

    

    

    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    
    <h4 class="name" id="date2bdt"><span class="type-signature"></span>date2bdt<span class="signature">(date)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将Date对象转换成BD 周和周内秒的时间
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">北斗时间Date对象</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line544">line 544</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li>toBDT</li>
        
            <li><a href="Date.html#.BDT">Date.BDT</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    周和周内秒 [w, sow]
</div>



    





        
            

    

    
    <h4 class="name" id="date2gpst"><span class="type-signature"></span>date2gpst<span class="signature">(date)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将Date对象转换成GPS 周和周内秒的时间
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">GPS时间Date对象</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line528">line 528</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li>toGPST</li>
        
            <li><a href="Date.html#.GPST">Date.GPST</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    周和周内秒 [w, sow]
</div>



    





        
            

    

    
    <h4 class="name" id="date2gst"><span class="type-signature"></span>date2gst<span class="signature">(date)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将Date对象转换成Galileo 周和周内秒的时间
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>date</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">Galileo时间Date对象</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line512">line 512</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li>toGST</li>
        
            <li><a href="Date.html#.GST">Date.GST</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    周和周内秒 [w, sow]
</div>



    





        
            

    

    
    <h4 class="name" id="deg2dms"><span class="type-signature"></span>deg2dms<span class="signature">(deg, ndec)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将度转换成度分秒数据
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>deg</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">角度</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>ndec</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">秒的小数位数</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line412">line 412</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#dms2deg">dms2deg</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    度分秒数组 [d,m,s]
</div>



    





        
            

    

    
    <h4 class="name" id="deg2rad"><span class="type-signature"></span>deg2rad<span class="signature">(deg)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将数值从角度制转换成弧度制
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>deg</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">需要转换的数值</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line388">line 388</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#rad2deg">rad2deg</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    转换成弧度制后的数值
</div>



    





        
            

    

    
    <h4 class="name" id="dms2deg"><span class="type-signature"></span>dms2deg<span class="signature">(deg, min, sec)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将度分秒数值转换成度
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>deg</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">度</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>min</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">分</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>sec</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">秒</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line400">line 400</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#deg2dms">deg2dms</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    角度值数值
</div>



    





        
            

    

    
    <h4 class="name" id="ecef2enu"><span class="type-signature"></span>ecef2enu<span class="signature">(pos, r)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将地心地固系坐标转换成ENU坐标
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>pos</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">ENU站心点 [lat, lon] (弧度)</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>r</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">需要转换的地心地固系坐标 [x,y,z]</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line351">line 351</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#enu2ecef">enu2ecef</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    ENU坐标[E,N,U]
</div>



    





        
            

    

    
    <h4 class="name" id="ecef2pos"><span class="type-signature"></span>ecef2pos<span class="signature">(r)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将地心地固系坐标转换成经纬度坐标
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>r</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">[x, y, z] (弧度,米)</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line291">line 291</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#pos2ecef">pos2ecef</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    经纬度坐标 [lat, lon, h] (弧度，米)
</div>



    





        
            

    

    
    <h4 class="name" id="enu2ecef"><span class="type-signature"></span>enu2ecef<span class="signature">(pos, e)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将ENU坐标转换成地心地固系坐标
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>pos</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">ENU站心点 [lat, lon] (弧度)</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>e</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">需要转化你的ENU坐标[e,n,u]</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line365">line 365</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#ecef2enu">ecef2enu</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    地心地固系坐标[x,y,z]
</div>



    





        
            

    

    
    <h4 class="name" id="getGPSLeapSecond"><span class="type-signature"></span>getGPSLeapSecond<span class="signature">(utc)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    根据JS时间戳获取GPS的跳秒数
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>utc</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">UTC时区的JS时间戳</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line203">line 203</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    GPS跳秒
</div>



    





        
            

    

    
    <h4 class="name" id="getGSTLeapSecond"><span class="type-signature"></span>getGSTLeapSecond<span class="signature">(utc)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    根据JS时间戳获取GPS的跳秒数
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>utc</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">UTC时区的JS时间戳</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line242">line 242</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    Galileo时间系统的跳秒
</div>



    





        
            

    

    
    <h4 class="name" id="getGlonassFrequency"><span class="type-signature"></span>getGlonassFrequency<span class="signature">(sateliteNumber)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    根据Glonass 卫星号返回该卫星号对应的载频编号（K）/频率索引(-7~6)
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>sateliteNumber</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">Glonass卫星号（1~24）</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line228">line 228</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="https://www.cnblogs.com/caimagic/p/11754470.html">https://www.cnblogs.com/caimagic/p/11754470.html</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    对应的载频编号/频率索引，错误数据返回undefined
</div>



    





        
            

    

    
    <h4 class="name" id="pos2ecef"><span class="type-signature"></span>pos2ecef<span class="signature">(pos)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将经纬度坐标转换成地心地固系坐标
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>pos</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">[lat, lon, h] (弧度,米)</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line274">line 274</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#ecef2pos">ecef2pos</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    地心地固系坐标 [x,y,z]
</div>



    





        
            

    

    
    <h4 class="name" id="rad2deg"><span class="type-signature"></span>rad2deg<span class="signature">(rad)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    将数值从弧度制转换成角度值
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>rad</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">需要转换的数值</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="GnssLib.js.html">GnssLib.js</a>, <a href="GnssLib.js.html#line378">line 378</a>
    </li></ul></dd>
    

    

    
    <dt class="tag-see">See:</dt>
    <dd class="tag-see">
        <ul>
            <li><a href="global.html#deg2rad">deg2rad</a></li>
        </ul>
    </dd>
    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    转换成角度制后的数值
</div>



    





        
    

    

    
</article>

</section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#date2bdt">date2bdt</a></li><li><a href="global.html#date2gpst">date2gpst</a></li><li><a href="global.html#date2gst">date2gst</a></li><li><a href="global.html#deg2dms">deg2dms</a></li><li><a href="global.html#deg2rad">deg2rad</a></li><li><a href="global.html#dms2deg">dms2deg</a></li><li><a href="global.html#ecef2enu">ecef2enu</a></li><li><a href="global.html#ecef2pos">ecef2pos</a></li><li><a href="global.html#enu2ecef">enu2ecef</a></li><li><a href="global.html#getGPSLeapSecond">getGPSLeapSecond</a></li><li><a href="global.html#getGSTLeapSecond">getGSTLeapSecond</a></li><li><a href="global.html#getGlonassFrequency">getGlonassFrequency</a></li><li><a href="global.html#pos2ecef">pos2ecef</a></li><li><a href="global.html#rad2deg">rad2deg</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Aug 28 2023 17:03:41 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>